﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_info.aspx.cs" Inherits="AnyOffice.general.login_info" %>

<HTML>
	<HEAD>
		<title>登录信息</title>
		<script LANGUAGE="JavaScript">		
		function change_state()
		{
			if(document.getElementById("sltState").style.display=="none")
				document.getElementById("sltState").style.display="";
			else
				document.getElementById("sltState").style.display="none";
		}

		function ChangeState()
		{
			AnyOffice.general.ipanel.AjaxMethods.ChangeState(document.getElementById("sltState").value, CallBack_ChangeState);			
		}
		
		function CallBack_ChangeState(res)
		{
			//if(res.error != null)  
			//	return;
			
			document.getElementById("sltState").style.display="none";
			document.getElementById("img_state").src = "/images/on_status" + document.getElementById("sltState").value + ".gif";
			document.getElementById("text_state").innerHTML = document.getElementById("sltState").options[document.getElementById("sltState").selectedIndex].text;
		}
		
		function show_about()
		{
			var url="/about.aspx";
			var mwidth = "436";
			var mheight = "230";			
			var loc_x=parseInt((window.screen.width - mwidth)/2);
			var loc_y=parseInt((window.screen.height - mwidth)/2); 
			if(window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
				window.open(url,"about","left=" + loc_x + "px,top=" + loc_y + "px,width=" + mwidth + "px,height=" + mheight + "px,resizable=no,scrollbars=yes,status=0");
			else
				window.showModalDialog(url,self,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:"+mwidth+"px;dialogHeight:"+mheight+"px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");			
		}
		</script>
	</HEAD>
	<body class="timebar" topmargin="0" leftmargin="0" rightmargin="0">
		<form id="Form1" method="post" runat="server">	
		<table border="0" cellspacing="0" cellpadding="1" class="small" width="100%">
			<tr>
				<td>
					<b>
					<img src="/images/dot3.gif" align="absMiddle">
					&nbsp;<IMG alt="" src="/images/hello.gif" align="absMiddle">
					<asp:Label id="lblDeptName" runat="server"></asp:Label>&nbsp;<IMG alt="" src="/images/arrow.gif" align="absMiddle">
					<asp:Label id="lblPrivName" runat="server" Visible="False"></asp:Label>
					<asp:Image id="imgAvatar" runat="server" ImageAlign="AbsMiddle"></asp:Image>
					<asp:Label id="lblUserName" runat="server"></asp:Label>&nbsp;
					<span style="cursor:pointer;cursor:hand" onclick="change_state();">
						<img id="img_state" src="/images/on_status<%=state%>.gif" align="absmiddle">
						<span id="text_state"><%=textState%></span>
					</span>
					<select class="SmallSelect" id="sltState" name="sltState" onchange="ChangeState();" style="display:none">
						<option value="1" <% =(state == 1?" selected":"")%>>联机</option>
						<option value="2" <% =(state == 2?" selected":"")%>>忙碌</option>
						<option value="3" <% =(state == 3?" selected":"")%>>离开</option>
					</select>
					</b>
				</td>
				<td align="right">&nbsp;				
				    <asp:Literal ID="litTrialRemainDays" Runat="server"></asp:Literal>
					&nbsp;&nbsp;<asp:HyperLink id="hyplRegister" runat="server" NavigateUrl="/License/reg.aspx" Target="main" Visible="False">软件注册</asp:HyperLink>
					&nbsp;&nbsp;<a href="http://www.anyoffice.net" target="_blank"></a>&nbsp;&nbsp;<a href="javascript:show_about();" >关于</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
			</tr>			
		</table>
		</form>
	</body>
</HTML>
